package org.ucas.kgraph.dto;

import com.alibaba.fastjson.JSON;
import com.google.common.base.Defaults;
import org.springframework.http.HttpStatus;
import org.ucas.kgraph.entity.Account;
import org.ucas.kgraph.entity.Perm;
import org.ucas.kgraph.entity.Role;
import org.ucas.kgraph.entity.Term;
import org.ucas.kgraph.utils.exception.NotFoundException;

import javax.servlet.http.HttpServletRequest;
import java.lang.reflect.Array;
import java.sql.Date;
import java.util.Arrays;
import java.util.List;
import java.util.Map;


public class PermDto  {

  public Long id;

  public String name;
  
  public String Ename;
  
  public String page;
  
  public static PermDto of(Perm perm){
    PermDto permDto = new PermDto();
    permDto.id = perm.getId();
    permDto.name=perm.getDiscribe();
    permDto.page=perm.getPage();
    permDto.Ename=perm.getName();
    return permDto;
  }



public Long getId() {
	return id;
}



public void setId(Long id) {
	this.id = id;
}



public String getName() {
	return name;
}



public void setName(String name) {
	this.name = name;
}



public String getPage() {
	return page;
}



public void setPage(String page) {
	this.page = page;
}


 
}
